/*
 * Copyright (c) 2023 Cshoo Org. All Rights Reserved.
 */

package org.cshoo.tattoo.authorize.domain.repository;

import org.cshoo.tattoo.authorize.domain.po.GroupUserRelation;
import org.springframework.data.repository.CrudRepository;

import javax.transaction.Transactional;

/**
 * @author 杨翼
 * @since 1.0
 */
public interface IGroupUserRelationRepository extends CrudRepository<GroupUserRelation, Long> {

    /**
     * 删除一个群组用户关系
     *
     * @param groupId 群组id
     * @param userId  用户id
     */
    @Transactional
    void deleteByGroupIdAndUserId(Long groupId, Long userId);
}
